<template>
  <div
    :style="{height:height+'px'}"
    v-loading="true"
    class="loading"
  >
    <div class="loading-text">
      {{ text || '加载中...' }}
    </div>
  </div>
</template>
<script>
export default {
  name: 'Loading',
  data() {
    return { height: 100, text: '' };
  },
};
</script>
<style scoped>
  .loading{
    background-color: #ffffff;
    text-align: center;
    position: relative;
  }

  .loading .loading-text{
      position: absolute;
      width:100%;
      top: 50%;
      margin-top: -10px;
      color: #d4d4d4;
  }
</style>
